﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200083F RID: 2111
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetStoryLineInfoScRsp : IMessage<GetStoryLineInfoScRsp>, IMessage, IEquatable<GetStoryLineInfoScRsp>, IDeepCloneable<GetStoryLineInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001AB8 RID: 6840
		// (get) Token: 0x06005E97 RID: 24215 RVA: 0x000FCA77 File Offset: 0x000FAC77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetStoryLineInfoScRsp> Parser
		{
			get
			{
				return GetStoryLineInfoScRsp._parser;
			}
		}

		// Token: 0x17001AB9 RID: 6841
		// (get) Token: 0x06005E98 RID: 24216 RVA: 0x000FCA7E File Offset: 0x000FAC7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetStoryLineInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001ABA RID: 6842
		// (get) Token: 0x06005E99 RID: 24217 RVA: 0x000FCA90 File Offset: 0x000FAC90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetStoryLineInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005E9A RID: 24218 RVA: 0x000FCA97 File Offset: 0x000FAC97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetStoryLineInfoScRsp()
		{
		}

		// Token: 0x06005E9B RID: 24219 RVA: 0x000FCAB8 File Offset: 0x000FACB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetStoryLineInfoScRsp(GetStoryLineInfoScRsp other) : this()
		{
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.retcode_ = other.retcode_;
			this.curStoryLineId_ = other.curStoryLineId_;
			this.unfinishedStoryLineIdList_ = other.unfinishedStoryLineIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005E9C RID: 24220 RVA: 0x000FCB16 File Offset: 0x000FAD16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetStoryLineInfoScRsp Clone()
		{
			return new GetStoryLineInfoScRsp(this);
		}

		// Token: 0x17001ABB RID: 6843
		// (get) Token: 0x06005E9D RID: 24221 RVA: 0x000FCB1E File Offset: 0x000FAD1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x17001ABC RID: 6844
		// (get) Token: 0x06005E9E RID: 24222 RVA: 0x000FCB26 File Offset: 0x000FAD26
		// (set) Token: 0x06005E9F RID: 24223 RVA: 0x000FCB2E File Offset: 0x000FAD2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001ABD RID: 6845
		// (get) Token: 0x06005EA0 RID: 24224 RVA: 0x000FCB37 File Offset: 0x000FAD37
		// (set) Token: 0x06005EA1 RID: 24225 RVA: 0x000FCB3F File Offset: 0x000FAD3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurStoryLineId
		{
			get
			{
				return this.curStoryLineId_;
			}
			set
			{
				this.curStoryLineId_ = value;
			}
		}

		// Token: 0x17001ABE RID: 6846
		// (get) Token: 0x06005EA2 RID: 24226 RVA: 0x000FCB48 File Offset: 0x000FAD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnfinishedStoryLineIdList
		{
			get
			{
				return this.unfinishedStoryLineIdList_;
			}
		}

		// Token: 0x06005EA3 RID: 24227 RVA: 0x000FCB50 File Offset: 0x000FAD50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetStoryLineInfoScRsp);
		}

		// Token: 0x06005EA4 RID: 24228 RVA: 0x000FCB60 File Offset: 0x000FAD60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetStoryLineInfoScRsp other)
		{
			return other != null && (other == this || (this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.Retcode == other.Retcode && this.CurStoryLineId == other.CurStoryLineId && this.unfinishedStoryLineIdList_.Equals(other.unfinishedStoryLineIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005EA5 RID: 24229 RVA: 0x000FCBD4 File Offset: 0x000FADD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CurStoryLineId != 0U)
			{
				num ^= this.CurStoryLineId.GetHashCode();
			}
			num ^= this.unfinishedStoryLineIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005EA6 RID: 24230 RVA: 0x000FCC48 File Offset: 0x000FAE48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005EA7 RID: 24231 RVA: 0x000FCC50 File Offset: 0x000FAE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005EA8 RID: 24232 RVA: 0x000FCC5C File Offset: 0x000FAE5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.unfinishedStoryLineIdList_.WriteTo(ref output, GetStoryLineInfoScRsp._repeated_unfinishedStoryLineIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CurStoryLineId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.CurStoryLineId);
			}
			this.trialAvatarIdList_.WriteTo(ref output, GetStoryLineInfoScRsp._repeated_trialAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005EA9 RID: 24233 RVA: 0x000FCCD8 File Offset: 0x000FAED8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.trialAvatarIdList_.CalculateSize(GetStoryLineInfoScRsp._repeated_trialAvatarIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CurStoryLineId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurStoryLineId);
			}
			num += this.unfinishedStoryLineIdList_.CalculateSize(GetStoryLineInfoScRsp._repeated_unfinishedStoryLineIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005EAA RID: 24234 RVA: 0x000FCD54 File Offset: 0x000FAF54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetStoryLineInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CurStoryLineId != 0U)
			{
				this.CurStoryLineId = other.CurStoryLineId;
			}
			this.unfinishedStoryLineIdList_.Add(other.unfinishedStoryLineIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005EAB RID: 24235 RVA: 0x000FCDC6 File Offset: 0x000FAFC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005EAC RID: 24236 RVA: 0x000FCDD0 File Offset: 0x000FAFD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 24U || num == 26U)
					{
						this.unfinishedStoryLineIdList_.AddEntriesFrom(ref input, GetStoryLineInfoScRsp._repeated_unfinishedStoryLineIdList_codec);
						continue;
					}
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.CurStoryLineId = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.trialAvatarIdList_.AddEntriesFrom(ref input, GetStoryLineInfoScRsp._repeated_trialAvatarIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400246B RID: 9323
		private static readonly MessageParser<GetStoryLineInfoScRsp> _parser = new MessageParser<GetStoryLineInfoScRsp>(() => new GetStoryLineInfoScRsp());

		// Token: 0x0400246C RID: 9324
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400246D RID: 9325
		public const int TrialAvatarIdListFieldNumber = 15;

		// Token: 0x0400246E RID: 9326
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x0400246F RID: 9327
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04002470 RID: 9328
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04002471 RID: 9329
		private uint retcode_;

		// Token: 0x04002472 RID: 9330
		public const int CurStoryLineIdFieldNumber = 12;

		// Token: 0x04002473 RID: 9331
		private uint curStoryLineId_;

		// Token: 0x04002474 RID: 9332
		public const int UnfinishedStoryLineIdListFieldNumber = 3;

		// Token: 0x04002475 RID: 9333
		private static readonly FieldCodec<uint> _repeated_unfinishedStoryLineIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x04002476 RID: 9334
		private readonly RepeatedField<uint> unfinishedStoryLineIdList_ = new RepeatedField<uint>();
	}
}
